<!-- Content -->
<div class="content">
    <div class="title"><h5><?php echo $page_title; ?></h5></div>
    <!-- Dynamic table -->
    <div class="table">
        <div class="head"><h5 class="iFrames">Tài liệu</h5></div>
        <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
            <thead>
                <tr>
                    <th width="40%">Tiêu đề</th>
                    <th width="20%">Thể loại</th>
                    <th width="20%">Môn học</th>
                    <th width="10%">Lượt tải</th>
                    <th width="10%"th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($posts as $post):?>
                    <tr class="gradeU">
                        <td style="vertical-align: middle;"><?php echo $post->title;?></td>
                        <td style="vertical-align: middle;"><?php echo $post->type->name;?></td>
                        <td style="vertical-align: middle;"><?php echo $post->course->name;?></td>
                        <td class="center"  style="vertical-align: middle;">120</td>
                        <td class="center" style="vertical-align: middle; line-height: 15px;"> 
                            <a href="#" title="">
                                <?php echo \Fuel\Core\Asset::img("backend/images/icons/dark/link.png");?>
                            </a>
                            <a href="#">
                                <?php echo \Fuel\Core\Asset::img("backend/images/icons/dark/pencil.png");?>
                            </a> 
                            <a href="#">
                                <?php echo \Fuel\Core\Asset::img("backend/images/icons/color/cross.png");?>
                            </a>
                        </td>
                    </tr>
                <?php endforeach;?>
            </tbody>
        </table>
    </div>
</div>